home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000033_simon@lia.di.epfl.ch_Thu Oct 7 15:07:17 1993.msg < prev    next >
Internet Message Format  |  1994-10-11  |  4KB

  1. Received: from liasun6.epfl.ch by cs.umb.edu with SMTP id AA04899
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 7 Oct 1993 15:07:17 -0400
  3. Received: by liasun6.epfl.ch (Smail3.1.28.1 #52)
  4.     id m0ol0PV-0002QrC; Thu, 7 Oct 93 19:49 MET
  5. Message-Id: <m0ol0PV-0002QrC@liasun6.epfl.ch>
  6. Date: Thu, 7 Oct 93 19:49 MET
  7. From: simon@lia.di.epfl.ch (Simon Leinen)
  8. To: tex-k@cs.umb.edu
  9. Subject: configure and Makefile problems (patches for both dvipsk-5.519b and xdvik-1.2)
  10.  
  11. *** configure.in    1993/10/06 17:02:52    1.1
  12. --- configure.in    1993/10/07 18:44:16
  13. ***************
  14. *** 25,30 ****
  15.   verbose=echo
  16.   
  17.   # Take the subdir list from the `programs' variable in ./Makefile.in.
  18. ! programs="`sed -n -e 's/programs *= *//p' Makefile.in`"
  19.   if test -z "$programs"; then
  20.     echo 'No assignment to programs variable in ./Makefile.in?!'
  21. --- 25,37 ----
  22.   verbose=echo
  23.   
  24. + if test x$srcdirdefaulted = xyes
  25. + then
  26. +   srcparentdir=..
  27. + else
  28. +   srcparentdir=${srcdir}
  29. + fi
  30.   # Take the subdir list from the `programs' variable in ./Makefile.in.
  31. ! programs="`sed -n -e 's/programs *= *//p' $srcdir/Makefile.in`"
  32.   if test -z "$programs"; then
  33.     echo 'No assignment to programs variable in ./Makefile.in?!'
  34. ***************
  35. *** 33,59 ****
  36.   
  37.   # Run configure in each program directory that exists, passing all our args.
  38. ! for d in $programs; do
  39. !   if test -d $d; then
  40.       # Remember the first program directory we find.
  41.       test -z "$first_program" && first_program=$d
  42. !     
  43.       $verbose "Running configure in $d..."
  44. !     (cd $d; $shell configure "$@")
  45.     fi
  46.   done
  47. - # Copy from the first program subdir to kpathsea.
  48. - $verbose "Running $first_program/config.status to configure kpathsea..."
  49. - if cmp -s $first_program/config.status kpathsea/config.status 2>/dev/null; then
  50. -   # The file exists and we would not be changing it.
  51. -   :
  52. - else
  53. -   rm -f kpathsea/config.status
  54. -   cp $first_program/config.status kpathsea
  55. -   # Generate only a top-level Makefile and c-auto.h in kpathsea, even if
  56. -   # the config.status that we copied generates more things (e.g., dvipsk's).
  57. -   (cd kpathsea; \
  58. -     CONFIG_FILES=Makefile CONFIG_HEADERS=c-auto.h $shell config.status)
  59. - fi
  60.   
  61.   AC_OUTPUT(Makefile)
  62. --- 40,52 ----
  63.   
  64.   # Run configure in each program directory that exists, passing all our args.
  65. ! for d in kpathsea $programs; do
  66. !   if test -d ${srcdir}/$d; then
  67.       # Remember the first program directory we find.
  68.       test -z "$first_program" && first_program=$d
  69. !     test -d $d || mkdir $d    
  70.       $verbose "Running configure in $d..."
  71. !     (cd $d; $shell ${srcparentdir}/$d/configure "$@" --srcdir="${srcparentdir}/$d")
  72.     fi
  73.   done
  74.   
  75.   AC_OUTPUT(Makefile)
  76. *** kpathsea/Makefile.in    1993/10/06 17:14:49    1.1
  77. --- kpathsea/Makefile.in    1993/10/06 17:16:23
  78. ***************
  79. *** 90,94 ****
  80.   
  81.   # Do not override CPPFLAGS; change CFLAGS or DEFS instead.
  82. ! CPPFLAGS = $(XCPPFLAGS) -I$(srcdir) -I$(kpathsea_parent) $(xincludedir) $(DEFS)
  83.   .c.o:
  84.       $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  85. --- 90,94 ----
  86.   
  87.   # Do not override CPPFLAGS; change CFLAGS or DEFS instead.
  88. ! CPPFLAGS = $(XCPPFLAGS) -I. -I$(kpathsea_parent) -I$(srcdir) -I$(srcdir)/.. -I$(kpathsea_parent) $(xincludedir) $(DEFS)
  89.   .c.o:
  90.       $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
  91. ***************
  92. *** 201,205 ****
  93.   configure_in = $(srcdir)/configure.in $(srcdir)/../kpathsea/common.ac
  94.   $(srcdir)/configure: $(configure_in) $(autoconf)
  95. !     cd $(srcdir); autoconf
  96.   
  97.   config.status: $(srcdir)/configure
  98. --- 201,205 ----
  99.   configure_in = $(srcdir)/configure.in $(srcdir)/../kpathsea/common.ac
  100.   $(srcdir)/configure: $(configure_in) $(autoconf)
  101. !     cd $(srcdir); ./autoconf
  102.   
  103.   config.status: $(srcdir)/configure